<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="model.User"%>
<%@page import="control.UserControl"%>
<%@page import="java.net.InetAddress"%>
<%@page import="java.util.List"%>
<%@page import="model.News"%>
<%@page import="control.NewsControl"%>
<%@page import="java.util.Collection"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>管理页面</title>
<link href="../../resources/admin/images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
</head>
<body>
<%
       request.setCharacterEncoding("utf-8");
       User cu = UserControl.getUserformation((Integer)session.getAttribute("uid"));
 %>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="../../resources/admin/images/mail_leftbg.gif"><img src="../../resources/admin/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../resources/admin/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">欢迎界面</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../resources/admin/images/mail_rightbg.gif"><img src="../../resources/admin/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="../../resources/admin/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>
        <td>&nbsp;</td>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" valign="top"><span class="left_bt">欢迎您进入网站管理系统程序</span><br>
              <br>
            <span class="left_txt">&nbsp;<img src="../../resources/admin/images/ts.gif" width="16" height="16"> 提示：<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您现在使用的是蓝旭工作室开发的用于管理辽宁省有色地质局101队网站的系统！如果您有任何疑问请点</span><span class="left_ts">
          <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=328491755&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:328491755:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a></span><span class="left_txt">进行咨询！<br> 
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 您上次登陆的ip是：<%=cu.getLastip() %><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 当前ip是<%=InetAddress.getLocalHost().toString().split("/")[1] %><br>
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;若有异常，请及时修改您的密码。　<% %> <br>
</span></td>
        <td width="7%">&nbsp;</td>
        <td width="40%" valign="top"><table width="100%" height="144" border="0" cellpadding="0" cellspacing="0" class="line_table">
          <tr>
          <td width="80%" background="../../resources/admin/images/news-title-bg.gif" class="left_bt2">最新动态</td>
            <td width="20%" height="27" background="../../resources/admin/images/news-title-bg.gif"><img src="../../resources/admin/imagesimages/news-title-bg.gif" width="2" height="27"></td>
            
          </tr>
           <%
                List<News> news = NewsControl.getSomeNews(5);
                for(News n:news){
             %>
          <tr>
            <td height="27"  valign="top"><span class="left_txt">&nbsp;&nbsp;<a href="#"><%=NewsControl.getBrief(n.getTitle(),10) %></a></span></td>
            <td><span class="left_txt"><%=n.getAddtime() %></span></td>
            <%} %>
          </tr>
          <tr>
            <td height="3" colspan="2">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" valign="top"><!--JavaScript部分--></td>
              <SCRIPT language=javascript>
function secBoard(n)
{
for(i=0;i<secTable.cells.length;i++)
secTable.cells[i].className="sec1";
secTable.cells[n].className="sec2";
for(i=0;i<mainTable.tBodies.length;i++)
mainTable.tBodies[i].style.display="none";
mainTable.tBodies[n].style.display="block";
}
          </SCRIPT>
              <!--HTML部分-->
              
        <td>&nbsp;</td>
        <td valign="top"><table width="400" height="287" border="0" cellpadding="0" cellspacing="0" class="line_table">
          <tr>
           <td width="80%" background="../../resources/admin/images/news-title-bg.gif" class="left_bt2">说明</td>
            <td width="20%" height="27" background="../../resources/admin/images/news-title-bg.gif"><img src="../../resources/admin/images/news-title-bg.gif" ></td>
           
          </tr>
          <tr>
            <td height="102" valign="top">&nbsp;</td>
            <td height="102" valign="top"><label></label>
              <label>
              <textarea name="textarea" cols="68" rows="8" readonly class="left_txt">一、专业的地区级商家门户建站首选方案！
二、全站一号通，一次注册，终身使用，一个帐号，全站通用！
三、分类信息、商家展示（百业联盟）、网上商城、网上名片（网上黄页）、广告张贴、市场联盟、市场资讯七大栏目完美整合。
四、界面设计精美，后台功能强大。傻瓜式后台操作，无需专业的网站制作知识，只要会打字，就会管理维护网站。</textarea>
              </label></td>
          </tr>
          <tr>
            <td height="5" colspan="2">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="40" colspan="4"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="2%">&nbsp;</td>
        <td width="51%" class="left_txt"><img src="../../resources/admin/images/icon-mail2.gif" width="16" height="11"> 客户服务邮箱：215288671@qq.com<br>
              <img src="../../resources/admin/images/icon-phone.gif" width="17" height="14"> 官方网站：http://www.codefans.net</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td background="../../resources/admin/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="../../resources/admin/images/mail_leftbg.gif"><img src="../../resources/admin/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="../../resources/admin/images/buttom_bgs.gif"><img src="../../resources/admin/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="../../resources/admin/images/mail_rightbg.gif"><img src="../../resources/admin/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
